home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: howland.reston.ans.net!psinntp!psinntp!psinntp!psinntp!cronkite!news
- From: Marco DeFreitas <mdefreitas@sikorsky.com>
- Subject: A "volatile" class???
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <1996Feb19.223659.4235@cronkite.res.utc.com>
- Sender: news@cronkite.res.utc.com
- Nntp-Posting-Host: iris604.asi.sikorsky.com
- Content-Transfer-Encoding: 7bit
- Organization: Sikorsky Aircraft
- Mime-Version: 1.0
- Date: Mon, 19 Feb 1996 22:36:59 GMT
- X-Mailer: Mozilla 1.1S (X11; I; IRIX 5.3 IP12)
- X-Url: news:comp.lang.c++
-
- I have several classes that will be "newed" from shared memory. I assume
- that all my data members have to be declared "volatile". This is getting
- messy. Is there a better way to protect my class from dangerous compiler
- optimizations?
-
- I've researched some books, and the closest thing I found is a "volatile"
- member function. Information was minimal, but does this mean that all
- dangerous optimization for member data is off while in this member function?
- Can I leave off the "volatile" keyword for the member data?
-
- Any insights or recommendations would be appreciated.
-
-
-
-
-
-
- --
- Regards,
- Marco DeFreitas
- Sikorsky Aircraft
- Stratford, CT
-
-